<script setup lang="ts">
import { ref } from 'vue'
import request from './api'
import { casLogout } from './utils/cas';

let res = ref('')

</script>

<template>
  <h1>CAS Demo</h1>
  <button
    @click="
      async () => {
        res = await request.get('/test')
      }
    "
  >
    发送后端请求
  </button>
  <p>请求结果：{{ res }}</p>

  <button @click="casLogout">退出登录</button>
</template>

<style scoped></style>
